package com.exmaple.springcloud.apis;

import com.exmaple.springcloud.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "nacos-payment-provider")
public interface NacosPayFeignApi {

    //访问nacos-payment-provider的/pay/nacos/{id}接口
    @GetMapping(value = "/pay/nacos/{id}")
    public R getPayInfo(@PathVariable("id") Integer id);

}